
.comment {
  display: flex;
  padding: 16px 0;

  a:hover {
    text-decoration: none;
  }

  .u-icon {
    font-size: 16px;
  }

  &-primary {
    flex: 1;
    margin-left: 16px;
    overflow: hidden;
  }
}

.comment-main {
  margin-right: 12px;
  .user-info {
    display: flex;
    align-items: center;

    .username {
      display: flex;
      align-items: center;
      margin-top: -8px;

      .name {
        font-weight: 500;
        font-size: 13.5px;
        line-height: 22px;
        margin-right: 4px;

      }

      .rank {
        margin-bottom: 5px;
        .iconfont {
          font-size: 22px;
        }
      }
    }

    .time {
      margin-left: auto;
      font-size: 14px;
      line-height: 22px;
      color: #8a8f8d;
    }
  }

  .action-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;

    .like-and-reply {
      display: flex;
      align-items: center;

      .item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-right: 16px;
        font-size: 14px;
        cursor: pointer;
        color: #8A8F8D;

        .iconfont {
          line-height: 21px;
          margin-right: 4px;
          font-size: 15px;
          cursor: pointer;
        }

        .reply-btn {
          font-size: 14px;
        }
      }

      .item:nth-child(1) {
        .iconfont:hover {
          color: @like-color;
        }
      }

      .item:nth-child(2):hover,
      .active {
        color: #409eff;
      }

      .delete-warn {
        .delete {
          visibility: hidden;

          &:focus {
            visibility: visible;
          }
        }
      }
    }
  }

  .u-fold {
    margin-top: 8px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: .03em;

    .txt-box {
      margin-top: 5px;
      // 会对过长的单词做词内断词处理，这样单词始终会在容器中，不会溢出容器
      word-wrap: break-word;
    }

    .action-box {
      margin: 5px 0;

      .expand-btn {
        display: inline-block;
        line-height: 22px;
        cursor: pointer;
        color: #117CEE;
      }

      .operate {
        cursor: pointer;
      }
    }

    .over-hidden {
      //象作为弹性伸缩盒子模型显示。
      display: -webkit-box;
      overflow: hidden;
      text-overflow: ellipsis;
      //设置或检索伸缩盒对象的子元素的排列方式。
      -webkit-box-orient: vertical;
      //用来限制在一个块元素显示的文本的行数。
      -webkit-line-clamp: 5;
    }
  }

  &:hover {
    .delete-warn .delete{
      visibility: visible !important;
    }
  }
}

.reply-from-comment {
    margin-left: 12px;
    margin-right: 12px;
    padding: 0;

  .comment-main {
    margin-right: 0;
  }
}

.reply-from-comment:not(:first-child) {
  margin-top: 1rem;
}

/deep/.user-info-card-box {

  .ant-popover-arrow {
    display: none;
  }

  .user-info-card {
    display: flex;
    margin: 15px 10px;
    justify-content: space-around;

    .user-avatar {
      margin-right: 15px;
    }

    .user-content {
      font-size: 16px;
      a {
        color: #585A5A;
      }

      .user-info {
        margin-bottom: 10px;
        .name {
          margin-right: 5px;
        }
        .iconfont {
          font-size: 20px;
        }
      }

      .social-info {
        margin-bottom: 15px;
        font-size: 14px;

        a {
          color: #8A8F8D;
        }

        .attention, .follower {
          margin-right: 8px;
        }
      }

      .card-btn {
        button:first-child {
          margin-right: 12px;
        }
      }
    }
  }
}
